package com.qf.mybatis03.dao;

import com.qf.mybatis03.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public Book getBookById(@Param("id") Integer id);

    public int insertManyBooks(@Param("books") List<Book> bookList);

    void updateUser(Book book);
    /*
    * 起始行号，需要根据查询的页号计算好
    * 每页多少条数据
    * */
    public List<Book> getBookByPage(@Param("start") Integer start,@Param("pageSize") Integer pageSize);
     //查询b_books总条数
    public Long getTotalCount();
}
